from suds.client import Client

sample_wdsl="https://wsvc.cdiscount.com/MarketplaceAPIService.svc?wsdl"
wsdl='http://116.6.110.158:XXXX/services/AAAInterfaceBusinessMgrService?wsdl'
client = Client(wsdl)
header_message = client.factory.create('ns2:RequestHeader')
header_message.CommandId = 'QuerySubscriberSession'
header_message.Version = 1
header_message.TransactionId = None
header_message.SequenceId = 1
header_message.RequestType = 'Event'
header_message.InterFrom = 1
header_message.InterMode = 1
header_message.InterMedi = 23
header_message.visitArea = 12
header_message.currentCell = 12
header_message.additionInfo = 12
header_message.ThirdPartyID = 12
header_message.Reserve2 = 1
header_message.Reserve3 = 1
header_message.PartnerID = 23
header_message.OperatorID = 12
header_message.TradePartnerID = 12
header_message.PartnerOperID = 12
header_message.BelToAreaID = 23
header_message.SerialNo = 12
header_message.Remark = 1
header_message.Locale = 'ZH'
# print(header_message.__dict__)

SubscriberSession = client.factory.create('QuerySubscriberSessionRequest')
SubscriberSession.SubscriberID = '12345678@oss'
# print(SubscriberSession)
response = client.service.QuerySubscriberSession(header_message,SubscriberSession)
print(response)